package view;


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.util.Observable;

import model.TemperatureModel;

public class KelvinView extends TemperatureView {
	
	public KelvinView() {}
	
	@Override
	public void initialize(TemperatureModel model, int h, int v) {
		this.label = "Kelvin Temperature";
		setDisplay("" + getFormatedT(model.getK()));
		super.initialize(model, h, v);
	}

	/** Called from the Model **/
	public void update(Observable t, Object o) { // Called from the Model
		setDisplay("" + getFormatedT(model().getK()));
	}
}
